Optimal. Leaf size=120 \[ \frac {\text {Ci}\left (4 \tan ^{-1}(a x)\right )}{a^3 c^3}+\frac {x}{a^2 c^3 \left (a^2 x^2+1\right ) \tan ^{-1}(a x)}-\frac {2 x}{a^2 c^3 \left (a^2 x^2+1\right )^2 \tan ^{-1}(a x)}-\frac {1}{2 a^3 c^3 \left (a^2 x^2+1\right ) \tan ^{-1}(a x)^2}+\frac {1}{2 a^3 c^3 \left (a^2 x^2+1\right )^2 \tan ^{-1}(a x)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.60, antiderivative size = 120, normalized size of antiderivative = 1.00, number of steps used = 22, number of rules used = 8, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {4964, 4902, 4968, 4970, 3312, 3302, 4904, 4406} \[ \frac {\text {CosIntegral}\left (4 \tan ^{-1}(a x)\right )}{a^3 c^3}+\frac {x}{a^2 c^3 \left (a^2 x^2+1\right ) \tan ^{-1}(a x)}-\frac {2 x}{a^2 c^3 \left (a^2 x^2+1\right )^2 \tan ^{-1}(a x)}-\frac {1}{2 a^3 c^3 \left (a^2 x^2+1\right ) \tan ^{-1}(a x)^2}+\frac {1}{2 a^3 c^3 \left (a^2 x^2+1\right )^2 \tan ^{-1}(a x)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3302
Rule 3312
Rule 4406
Rule 4902
Rule 4904
Rule 4964
Rule 4968
Rule 4970
Rubi steps
\begin {align*} \int \frac {x^2}{\left (c+a^2 c x^2\right )^3 \tan ^{-1}(a x)^3} \, dx &=-\frac {\int \frac {1}{\left (c+a^2 c x^2\right )^3 \tan ^{-1}(a x)^3} \, dx}{a^2}+\frac {\int \frac {1}{\left (c+a^2 c x^2\right )^2 \tan ^{-1}(a x)^3} \, dx}{a^2 c}\\ &=\frac {1}{2 a^3 c^3 \left (1+a^2 x^2\right )^2 \tan ^{-1}(a x)^2}-\frac {1}{2 a^3 c^3 \left (1+a^2 x^2\right ) \tan ^{-1}(a x)^2}+\frac {2 \int \frac {x}{\left (c+a^2 c x^2\right )^3 \tan ^{-1}(a x)^2} \, dx}{a}-\frac {\int \frac {x}{\left (c+a^2 c x^2\right )^2 \tan ^{-1}(a x)^2} \, dx}{a c}\\ &=\frac {1}{2 a^3 c^3 \left (1+a^2 x^2\right )^2 \tan ^{-1}(a x)^2}-\frac {1}{2 a^3 c^3 \left (1+a^2 x^2\right ) \tan ^{-1}(a x)^2}-\frac {2 x}{a^2 c^3 \left (1+a^2 x^2\right )^2 \tan ^{-1}(a x)}+\frac {x}{a^2 c^3 \left (1+a^2 x^2\right ) \tan ^{-1}(a x)}-6 \int \frac {x^2}{\left (c+a^2 c x^2\right )^3 \tan ^{-1}(a x)} \, dx+\frac {2 \int \frac {1}{\left (c+a^2 c x^2\right )^3 \tan ^{-1}(a x)} \, dx}{a^2}+\frac {\int \frac {x^2}{\left (c+a^2 c x^2\right )^2 \tan ^{-1}(a x)} \, dx}{c}-\frac {\int \frac {1}{\left (c+a^2 c x^2\right )^2 \tan ^{-1}(a x)} \, dx}{a^2 c}\\ &=\frac {1}{2 a^3 c^3 \left (1+a^2 x^2\right )^2 \tan ^{-1}(a x)^2}-\frac {1}{2 a^3 c^3 \left (1+a^2 x^2\right ) \tan ^{-1}(a x)^2}-\frac {2 x}{a^2 c^3 \left (1+a^2 x^2\right )^2 \tan ^{-1}(a x)}+\frac {x}{a^2 c^3 \left (1+a^2 x^2\right ) \tan ^{-1}(a x)}-\frac {\operatorname {Subst}\left (\int \frac {\cos ^2(x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c^3}+\frac {\operatorname {Subst}\left (\int \frac {\sin ^2(x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c^3}+\frac {2 \operatorname {Subst}\left (\int \frac {\cos ^4(x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c^3}-\frac {6 \operatorname {Subst}\left (\int \frac {\cos ^2(x) \sin ^2(x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c^3}\\ &=\frac {1}{2 a^3 c^3 \left (1+a^2 x^2\right )^2 \tan ^{-1}(a x)^2}-\frac {1}{2 a^3 c^3 \left (1+a^2 x^2\right ) \tan ^{-1}(a x)^2}-\frac {2 x}{a^2 c^3 \left (1+a^2 x^2\right )^2 \tan ^{-1}(a x)}+\frac {x}{a^2 c^3 \left (1+a^2 x^2\right ) \tan ^{-1}(a x)}+\frac {\operatorname {Subst}\left (\int \left (\frac {1}{2 x}-\frac {\cos (2 x)}{2 x}\right ) \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c^3}-\frac {\operatorname {Subst}\left (\int \left (\frac {1}{2 x}+\frac {\cos (2 x)}{2 x}\right ) \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c^3}+\frac {2 \operatorname {Subst}\left (\int \left (\frac {3}{8 x}+\frac {\cos (2 x)}{2 x}+\frac {\cos (4 x)}{8 x}\right ) \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c^3}-\frac {6 \operatorname {Subst}\left (\int \left (\frac {1}{8 x}-\frac {\cos (4 x)}{8 x}\right ) \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c^3}\\ &=\frac {1}{2 a^3 c^3 \left (1+a^2 x^2\right )^2 \tan ^{-1}(a x)^2}-\frac {1}{2 a^3 c^3 \left (1+a^2 x^2\right ) \tan ^{-1}(a x)^2}-\frac {2 x}{a^2 c^3 \left (1+a^2 x^2\right )^2 \tan ^{-1}(a x)}+\frac {x}{a^2 c^3 \left (1+a^2 x^2\right ) \tan ^{-1}(a x)}+\frac {\operatorname {Subst}\left (\int \frac {\cos (4 x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{4 a^3 c^3}-2 \frac {\operatorname {Subst}\left (\int \frac {\cos (2 x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{2 a^3 c^3}+\frac {3 \operatorname {Subst}\left (\int \frac {\cos (4 x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{4 a^3 c^3}+\frac {\operatorname {Subst}\left (\int \frac {\cos (2 x)}{x} \, dx,x,\tan ^{-1}(a x)\right )}{a^3 c^3}\\ &=\frac {1}{2 a^3 c^3 \left (1+a^2 x^2\right )^2 \tan ^{-1}(a x)^2}-\frac {1}{2 a^3 c^3 \left (1+a^2 x^2\right ) \tan ^{-1}(a x)^2}-\frac {2 x}{a^2 c^3 \left (1+a^2 x^2\right )^2 \tan ^{-1}(a x)}+\frac {x}{a^2 c^3 \left (1+a^2 x^2\right ) \tan ^{-1}(a x)}+\frac {\text {Ci}\left (4 \tan ^{-1}(a x)\right )}{a^3 c^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.15, size = 60, normalized size = 0.50 \[ \frac {\frac {a x \left (2 \left (a^2 x^2-1\right ) \tan ^{-1}(a x)-a x\right )}{\left (a^2 x^2+1\right )^2 \tan ^{-1}(a x)^2}+2 \text {Ci}\left (4 \tan ^{-1}(a x)\right )}{2 a^3 c^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [C] time = 0.52, size = 215, normalized size = 1.79 \[ -\frac {a^{2} x^{2} - {\left (a^{4} x^{4} + 2 \, a^{2} x^{2} + 1\right )} \arctan \left (a x\right )^{2} \operatorname {log\_integral}\left (\frac {a^{4} x^{4} + 4 i \, a^{3} x^{3} - 6 \, a^{2} x^{2} - 4 i \, a x + 1}{a^{4} x^{4} + 2 \, a^{2} x^{2} + 1}\right ) - {\left (a^{4} x^{4} + 2 \, a^{2} x^{2} + 1\right )} \arctan \left (a x\right )^{2} \operatorname {log\_integral}\left (\frac {a^{4} x^{4} - 4 i \, a^{3} x^{3} - 6 \, a^{2} x^{2} + 4 i \, a x + 1}{a^{4} x^{4} + 2 \, a^{2} x^{2} + 1}\right ) - 2 \, {\left (a^{3} x^{3} - a x\right )} \arctan \left (a x\right )}{2 \, {\left (a^{7} c^{3} x^{4} + 2 \, a^{5} c^{3} x^{2} + a^{3} c^{3}\right )} \arctan \left (a x\right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.23, size = 52, normalized size = 0.43 \[ \frac {16 \Ci \left (4 \arctan \left (a x \right )\right ) \arctan \left (a x \right )^{2}-4 \sin \left (4 \arctan \left (a x \right )\right ) \arctan \left (a x \right )+\cos \left (4 \arctan \left (a x \right )\right )-1}{16 a^{3} c^{3} \arctan \left (a x \right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {2 \, {\left (a^{6} c^{3} x^{4} + 2 \, a^{4} c^{3} x^{2} + a^{2} c^{3}\right )} \mathit {sage}_{0} x \arctan \left (a x\right )^{2} - a x^{2} + 2 \, {\left (a^{2} x^{3} - x\right )} \arctan \left (a x\right )}{2 \, {\left (a^{6} c^{3} x^{4} + 2 \, a^{4} c^{3} x^{2} + a^{2} c^{3}\right )} \arctan \left (a x\right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {x^2}{{\mathrm {atan}\left (a\,x\right )}^3\,{\left (c\,a^2\,x^2+c\right )}^3} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {x^{2}}{a^{6} x^{6} \operatorname {atan}^{3}{\left (a x \right )} + 3 a^{4} x^{4} \operatorname {atan}^{3}{\left (a x \right )} + 3 a^{2} x^{2} \operatorname {atan}^{3}{\left (a x \right )} + \operatorname {atan}^{3}{\left (a x \right )}}\, dx}{c^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________